package org.example.service;

import com.github.pagehelper.PageInfo;
import org.example.pojo.domain.Artifact;
import org.example.pojo.domain.ArtifactShow;

import java.util.List;

public interface ArtifactService {
//    List<Artifact> listArtifacts();
    PageInfo<Artifact> listArtifacts(int page, int size);

    Artifact getArtifactById(Integer artifactId);
    void addArtifact(Artifact artifact);
    void updateArtifact(Artifact artifact);
    void deleteArtifact(Integer artifactId);
//    List<Artifact> listByPage(Integer size,Integer page);
    void addShow(ArtifactShow artifactShow);

    List<Artifact> listAvailableArtifacts();
    void approveById(Integer id);
    List<ArtifactShow> listBorrow();
    /**
     * 记录一次文物审核，并根据审核结果更新文物状态
     */
    void reviewArtifact(Integer artifactId, String reviewStatus);

    List<Artifact> like(String query);

    List<Artifact> listPendingArtifacts();

    List<Integer> checkExpire();

    void removeShowById(Integer artifactId);
}


